﻿using OT.Data;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;


namespace OT.Areas.Admin.Models
{
    public class Topics
    {
        public int TopicID { get; set; }
        [Required, DisplayName("TopicName")]
        public string TopicName { get; set; }
      
        [Required, DisplayName("Subject Name")]
        public int? SubjectID { get; set; }
     
        [DataType(DataType.MultilineText)]
        public string Description { get; set; }


        public bool Status { get; set; }
        [Required, DisplayName("User")]
        public int? UserID { get; set; }

        [DisplayName("Subject Name")]
        public string SubjectName { get; set; }

        [DisplayName("Category Name")]
        public string CategoryName { get; set; }

        public int? CategoryID { get; set; }

        public DateTime CreatedDate { get; set; }
        public DateTime UpdatedDate { get; set; }

        [DisplayName("User")]
        public string UserName { get; set; }

        public ICollection<User> Users { get; set; }
        public ICollection<Category> category { get; set; }
        public ICollection<Subject> Subjects { get; set; }
        public int LanguageID { get; set; }
    }
}